#include<iostream>
using namespace std;
int KiemTraNguyenTo(int );
int main()
{
	ofstream fout;
	fout.open("D:\1112022\Week4\1112022\input.bin","ios::binary");
	int a,b;
	fout>>a;
	fout>>b;
	for(int i=a;i<=b;i++)
		if(KiemTraNguyenTo(i)==1)
			file<<i;
	fout.close();
	return 0;
}
int KiemTraNguyenTo(int a)
{
	if(a<=1)
		return -1;
	for(int i=2;i<a;i++)
	{
		if(a%i==0)
			return -1;
	}
	return 1;
}